﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false"
    CodeFile="AdminNews.aspx.vb" Inherits="AdminNews" ValidateRequest="false" %>

<%@ Register Src="WebUserControls/CntlData.ascx" TagName="CntlData" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <link rel="stylesheet" href="Scripts/dojo/dijit/themes/tundra/tundra.css" type="text/css" />
    <script>
        // Load the editor resource
        dojo.require("dojo.parser");
        dojo.require("dijit.Editor");
        dojo.require("dojox.editor.plugins.AutoUrlLink");
    </script>
    <asp:GridView ID="GVNews" runat="server" AutoGenerateColumns="False" AllowPaging="True"
        OnPageIndexChanging="GVNews_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="PK_News" HeaderText="PK_news" />
            <asp:BoundField DataField="Text" HeaderText="Text" />
            <asp:BoundField DataField="DataInizioValidita" HeaderText="Data Inizio Validita news" />
            <asp:BoundField DataField="DataFineValidita" HeaderText="Data fine validita news" />
            <asp:BoundField DataField="DataInserimento" HeaderText="Data insserimento news" />
            <asp:ButtonField ButtonType="Button" CommandName="CaricaRiga" Text="Carica riga" />
            <asp:ButtonField ButtonType="Button" CommandName="EliminaRiga" Text="Elimaina" />
        </Columns>
    </asp:GridView>
    <asp:Button ID="BtnSvuota" runat="server" Text="Svuota campi" />
    <table>
        <tr>
            <td colspan="4">
                <asp:Label ID="LblValidita" runat="server" Text="Validita notizia (da quando a quando vuoi che compaia la notizia)"></asp:Label>
                <uc1:CntlData ID="CntlData1" runat="server" />
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <div class="thundra">
                    <asp:Label ID="LblTesto" runat="server" Text="Testo notizia"></asp:Label>
                    <textarea runat="server" id="TBTestoNotizia" dojotype="dijit.Editor" data-dojo-props="extraPlugins:['autourllink']"
                        rows="20" cols="80">

                </textarea>
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Label ID="LblPriorita" runat="server" Text="Priorita (Numero!!!)"></asp:Label>
                <asp:TextBox ID="TBPriorita" runat="server">100</asp:TextBox>
            </td>
        </tr>
    </table>
    <asp:Button ID="BtnSalva" runat="server" Text="Salva news" />
    <ul>
        <li>
            <asp:LinkButton ID="LbNuovoUtente" runat="server" PostBackUrl="~/AdminAggiungiUtente.aspx">Inserisci utente</asp:LinkButton>
        </li>
        <li>
            <asp:LinkButton ID="LBNuovaOrganizzatore" runat="server" PostBackUrl="~/AdminAggiungiOrganizzatore.aspx">Inserisci organizzatore</asp:LinkButton>
        </li>
        <li>
            <asp:LinkButton ID="LBNuovoEvento" runat="server" PostBackUrl="~/AdminAggiungiEvento.aspx">Inserisci evento</asp:LinkButton>
        </li>
    </ul>
</asp:Content>
